﻿#include "CmdThreeDSurfacePlotSidebarFrequencyChanged.h"
#include "CmdThreeDSurfacePlotSidebarFrequencyChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDSurfacePlotSidebarFrequencyChanged::CmdThreeDSurfacePlotSidebarFrequencyChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDSurfacePlotSidebarFrequencyChanged::~CmdThreeDSurfacePlotSidebarFrequencyChanged()
    {
    }

    bool CmdThreeDSurfacePlotSidebarFrequencyChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDSurfacePlotSidebarFrequencyChanged(m_windowId, m_frequencyId);
        return true;
    }

    void CmdThreeDSurfacePlotSidebarFrequencyChanged::undo()
    {
    }

    void CmdThreeDSurfacePlotSidebarFrequencyChanged::redo()
    {
        // execute();
    }

    void CmdThreeDSurfacePlotSidebarFrequencyChanged::setThreeDSurfacePlotSidebarFrequencyChanged(int windowId, int frequencyId)
    {
        m_windowId = windowId;
        m_frequencyId = frequencyId;
    }

} // namespace PostCommand
